package com.geekcc.springboot.entity;

import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

import lombok.Data;

@ApiModel(value = "com-geekcc-springboot-entity-Supplier")
@Data
@TableName(value = "supplier")
public class Supplier implements Serializable {

    /**
     * id
     */
    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "name")
    @Alias("公司名")
    @ApiModelProperty(value = "公司名")
    private String name;

    /**
     * 备注
     */
    @TableField(value = "remarks")
    @Alias("经营范围")
    @ApiModelProperty(value = "经营范围")
    private String remarks;

    /**
     * 地址
     */
    @TableField(value = "address")
    @Alias("地址")
    @ApiModelProperty(value = "地址")
    private String address;

    /**
     * 电话
     */
    @TableField(value = "contact")
    @Alias("联系方式")
    @ApiModelProperty(value = "联系方式")
    private String contact;

    /**
     * 整数地址
     */
    @TableField(value = "imgPath")
    @Alias("公司头像")
    @ApiModelProperty(value = "公司头像")
    private String imgpath;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_REMARKS = "remarks";

    public static final String COL_ADDRESS = "address";

    public static final String COL_CONTACT = "contact";

    public static final String COL_IMGPATH = "imgPath";
}